package org.framework.define;

import java.math.BigDecimal;

public interface Constant {
	
	interface System {
		/**
		 *	规定的系统参数名 
		 */
		interface ParamName {
			String GROW_CREDIT = "GROW_CREDIT";
			String SECURITY_DEPOSIT_PERCENT = "SD_PERCENT";
			String TASK_IP_LIMIT = "TASK_IP_LIMIT";
			String TASK_STORE_LIMIT = "TASK_STORE_LIMIT";
		}
		
		/**
		 *	系统参数默认值 
		 */
		interface ParamValue {
			int GROW_CREDIT = 1;
			BigDecimal SECURITY_DEPOSIT_PERCENT = new BigDecimal(1);
			int TASK_IP_LIMIT = 20;
			int TASK_STORE_LIMIT = 6;
		}
		
		interface State {
			int Y = 1;					//启用
			int N = 0;					//未启用
			String ACTIVE = "ST000";	//活动的
			String LOCKED = "ST001";	//锁定的
			String INVALID = "ST002";	//已失效
		}
		
		interface RealFlag {
			int Y = 1;
			int N = 0;
		}
		
	}
	
	interface User {
		
		interface BizAccount {
			
			interface Type{
				int SELLER = 0;
				int BUYER = 1;
			}
		}
		
		interface Blacklist {
			
			interface Type {
				String ALL = "BT000";	//限制所有
				String TASK = "BT001";	//仅不能接任务
			}
		}
		
		interface Rule{
			interface DefaultNum {
				int SELLER = 2;			//卖号默认个数
				int BUYER = 30;			//买号默认个数
				int TASK = 4;			//同时可接接任务默认个数
				int CHECK = 10;			//审核买号默认个数
			}
			
			interface Type{
				int SELLER_LIMIT = 0;	//卖号个数限制
				int BUYER_LIMIT = 1;	//买号个数限制
				int TASK_LIMIT = 2;		//同时可接任务个数限制
				int CHECK_LIMIT =3;		//审核买号个数限制
			}
		}
	}
	
	interface Task {
		
		interface Rule {
			String PROMPT = "prompt";
			String RADDRESS = "receive_address";
			String SHARE = "share";
			String REAL = "real";
			String CHECK = "check";
			String SAFE = "safe";
			String CHAT = "chat";
			String RECEIVED = "received";
			String TADDRESS = "take_address";
			String COMPARE = "compare";
			String SHOW = "show";
			String ASHOW = "append_show";
			String ACOMMENT = "append_comment";
			String CHANNEL = "channel";
			
			interface Type {
				int PAY = 0;	//奖励给买家
				int SPEND = 1;	//平台消耗
			}
			
			interface Ico {
				String PRICE = "价";
				String PROMPT = "评";
				String RADDRESS = "改";
				String SHARE = "享";
				String REAL = "实";
				String CHECK = "审";
				String CHAT = "聊";
				String RECEIVED = "签";
				String COMPARE = "比";
				String SHOW = "晒";
				String ACOMMENT = "追";
				String CHANNEL = "渠";
				String SAFE = "保";
			}
		}
		
		interface Type {
			int NONE = 0;				//普通任务
			int SEARCH_SHOP = 1;		//来路任务-搜索店铺
			int SEARCH_PRODUCT = 2;		//来路任务-搜索商品
			int SEARCH_FEEDBACK = 3;	//来路任务-搜索信用
			int SHOPPING_CART = 4;		//购物车任务
			int PACKAGE = 5;			//套餐任务
			
		}
		
		interface State {
			String STOP = "TS000";				//任务暂停
			String WAIT = "TS001";				//等待接手
			String CHECK = "TS002";				//等待审核
			String PAY = "TS003";				//等待支付
			String SEND = "TS004";				//确认发货
			
			String COMMENT = "TS005";			//等待好评
			String COMMENT_SHOW = "TS015";		//等待好评并晒单
			
			String APD_COMMENT = "TS006";		//等待追评
			String APD_COMMENT_SHOW = "TS016";	//等待追评并晒单
			
			String CONFIRM = "TS007";			//等待确认
			String COMPLETE = "TS008";			//确认完成
		}
	}
}
